package test;
import java.sql.*;
public class DbConn {
	private Connection conn=null;
	private boolean status=false;
	public DbConn(){
		this.conn=conn;
	}
	public void open(){//连接前调用，设置连接已被使用的标志
		status=true;
	}
	public boolean isClose() {
		return !status;
	}
	public void close() {
		status=false;
	}
	public Statement creatStatement(int resultSetType,int resultSetConcurrency)throws SQLException{
		return conn.createStatement(resultSetType,resultSetConcurrency);
	}
	public Statement creatStatement() throws SQLException{
		return conn.createStatement();
	}
}
